package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.Experiment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试验台账(Experiment)表数据库访问层
 *
 * @author linzi
 * @since 2023-12-18 22:11:48
 */
public interface ExperimentMapper extends BaseMapper<Experiment> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Experiment> getList(Experiment entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    Experiment loadById(@Param("id") Long id);

    /**
     * 获取最新的条数
     *
     * @param entity
     * @return
     */
    int getListCount(Experiment entity);
}
